/*
 * Screen.cpp
 *
 *  Created on: 2020年11月13日
 *      Author: san
 */

#include "Screen.h"
#include "Winsowmgr.h"

Screen::Screen() = default;

// 静态数据成员类外定义
Screen::Action Screen::Menu[] = {
		&Screen::home,
		&Screen::forward,
		&Screen::back,
		&Screen::up,
		&Screen::down,
};

inline char Screen::get(pos ht, pos wd) const
{
	pos row = ht * width;
	return contents[row + wd];
}

Screen::pos Screen::size() const
{
	return height * width;
}


Screen::~Screen() {
	// TODO Auto-generated destructor stub
}

